package com.jf.tzkk.chain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 链信息
 * </p>
 *
 * @author jobob
 * @since 2023-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("op_chain")
@ApiModel(value="Chain对象", description="链信息")
public class Chain implements Serializable {

    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "ID")
//    @TableId(value = "id", type = IdType.ASSIGN_ID)
//    private String id;
//
//    @ApiModelProperty(value = "链名代码")
//    private String chainCode;
//
//    @ApiModelProperty(value = "链名称")
//    private String chainName;

    @ApiModelProperty(value = "合约地址")
    private String contractAddress = "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";

//    @ApiModelProperty(value = "币种---暂时只支持usdt一种，所以暂时不用，唯一索引也暂不和它有关")
//    private String token;

    @ApiModelProperty(value = "精度")
    private Long decimals = 1000000l;

//    @ApiModelProperty(value = "链API KEY")
//    private String apiKey;

    @ApiModelProperty(value = "钱包地址")
    private String walletAddress;

//    @ApiModelProperty(value = "充值汇率(代币*recharge_rate=金币)")
//    private BigDecimal rechargeRate;

    @ApiModelProperty(value = "最小充值代币数")
    private BigDecimal rechargeMin = BigDecimal.valueOf(1);

}